from fastapi import Response


def set_tenant_cookie(resp: Response, tenant_id) -> Response:
    resp.set_cookie("login_tenant", str(tenant_id), max_age=7 * 24 * 60)
    return resp


def delete_tenant_cookie(resp: Response) -> Response:
    resp.delete_cookie("login_tenant")
    return resp
